home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000104_news@newsmaster….columbia.edu _Thu Jul 24 15:50:07 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA06786
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 24 Jul 1997 15:50:07 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA25756
  7.     for kermit.misc@watsun; Thu, 24 Jul 1997 15:50:07 -0400 (EDT)
  8. Path: news.columbia.edu!news.new-york.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!europa.clark.net!206.229.87.25!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!207.103.140.20!news.voicenet.com!omni2!cmosley
  9. From: cmosley@voicenet.com (Christopher Mosley)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: I wonder why
  12. Date: 24 Jul 1997 11:55:27 GMT
  13. Organization: VoiceNet - Internet Access - (215)674-9290
  14. Lines: 56
  15. Message-ID: <5r7frf$klc$1@news2.voicenet.com>
  16. References: <5r524l$2l$1@news2.voicenet.com> <5r5neg$sa1$1@apakabar.cc.columbia.edu>
  17. NNTP-Posting-Host: omni2.voicenet.com
  18. X-Newsreader: TIN [version 1.2 PL2]
  19. Xref: news.columbia.edu comp.protocols.kermit.misc:7382
  20.  
  21. Frank da Cruz (fdc@watsun.cc.columbia.edu) wrote:
  22. : In article <5r524l$2l$1@news2.voicenet.com>,
  23. : Christopher Mosley <cmosley@voicenet.com> wrote:
  24. : : In sun 4 ckermit  
  25. : : 
  26. : Which version?
  27.  
  28. C-Kermit 6.0.192, 6 Sep 96, for SunOS 4.1 
  29.  
  30. : : If I run a sh script from a command shell with the command
  31. : : #1.<kermit -C "send file"> or #2.<kermit -s file> everything is fine
  32. : : however if I use these commands in a script that is running from 
  33. : : another process they fail.
  34. : :
  35. : I'm not sure what you mean by "running from another process".
  36.  
  37.  
  38. *I accomplished* what I wanted by using the command 
  39. "echo send $file | kermit"  in the sh script.  What I am doing is piping
  40. the contents of a post in the newsreading program "tin"  through  a filter
  41. that turns the contents of that post into a file and then runs a sh script
  42. that downloads that file to my PC using kermit protocol, after this
  43. is done control is again returned to  the "tin process".
  44.  
  45. Since "kermit -C "send $file"" leaves you in interactive mode I believed
  46. that "kermit -C "send $file""  and  "echo send $file | kermit"  were
  47. basically functionally the same. First I tried to use "kermit -C "send file""
  48. in the script file to accomplish the above, after hours of trying to do
  49. this and failing I stumbled on the use of  "echo send $file | kermit" - this
  50. worked ! When "kermit -C "send $file"" was used the automatic kermit
  51. download feature failed when I manually gave the receive command at
  52. the mskermit prompt the download screen came up completely inactive.
  53. Incidentally  kermit -C "command""  worked in the above context for
  54. other commands that did not require a response e.g ls,pwd,echo etc.  
  55. Also when "kermit -C "send $file""  is used in a script that is started
  56. from the unix command shell (a unix prompt) it unfailingly works.     
  57.  
  58.  
  59.     
  60. There is no problem because "echo send $file | kermit" 
  61. works. I only posted because at the time I was surprised and
  62. frustrated and thought I had inkling of why "kermit -C "send $file"" 
  63. wasn't working. Now I realize I don't have the remotest idea why
  64. it isn't working.      
  65.  
  66.  
  67. Doing this I discovered that I can use kermit protocol to download
  68. from standard input, Unfortunately  this can only be done
  69. using kermit -s - , and this didn't work either.
  70.  
  71.    
  72. If this is still incomprehensible feel free not to respond.
  73.  
  74.                                                             Thanks    
  75.                                                             cmosley   
  76.